/**
 * 
 */
package persistence;

/**
 * Contient les paramètres de la connexion à la base de données
 * 
 * @author dga
 * 
 */
public class ConnectionConfiguration {

	private String driverClass;
	private String url;
	private String userName;
	private String password;
	private C3p0Configuration c3p0Configuration;

	public String getDriverClass() {
		return driverClass;
	}

	public void setDriverClass(String driverClass) {
		this.driverClass = driverClass;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the c3p0Configuration
	 */
	public C3p0Configuration getC3p0Configuration() {
		return c3p0Configuration;
	}

	/**
	 * @param c3p0Configuration
	 *            the c3p0Configuration to set
	 */
	public void addC3p0Configuration(C3p0Configuration c3p0Configuration) {
		this.c3p0Configuration = c3p0Configuration;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ConnectionConfiguration [c3p0Configuration=" + c3p0Configuration + ", driverClass=" + driverClass + ", password=" + password + ", url=" + url + ", userName=" + userName + "]";
	}

}
